package edu.sctu.zhengsenwen.month201506.day20150618;

/**
 * Created by user15 on 2015/6/18.
 */
public class ObjectDeleteDemo {

    public ObjectDeleteDemo() {

        for (int i = 0; i < 100; i++) {

            String string = "Hello java " + i;
            string.trim();


            System.out.println(string);

            string = null;
            System.gc();
        }
    }

    public static void main(String[] args) {

        ObjectDeleteDemo objectDeleteDemo = new ObjectDeleteDemo();

    }
}
